home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
marchzuma.swf
/
scripts
/
DefineSprite_557
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-10-01
|
3KB
|
174 lines
function clchg(r)
{
switch(r)
{
case 1:
colList.ra = 100;
colList.ga = 45;
colList.ba = 30;
colList.rb = 80;
colList.gb = 0;
colList.bb = 0;
break;
case 2:
colList.ra = 100;
colList.ga = 100;
colList.ba = 20;
colList.rb = 120;
colList.gb = 25;
colList.bb = 0;
break;
case 3:
colList.ra = 0;
colList.ga = 100;
colList.ba = 100;
colList.rb = 0;
colList.gb = 0;
colList.bb = 175;
break;
case 4:
colList.ra = 100;
colList.ga = 100;
colList.ba = 0;
colList.rb = 30;
colList.gb = 70;
colList.bb = 0;
break;
case 5:
colList.ra = 100;
colList.ga = 45;
colList.ba = 100;
colList.rb = 45;
colList.gb = 0;
colList.bb = 60;
}
}
function d(i)
{
rx = i.tx - i._x;
ry = i.ty - i._y;
var _loc4_ = Math.atan2(ry,rx);
var _loc3_ = _loc4_ - i.rt;
if(Math.abs(_loc3_) > 3)
{
if(_loc3_ < 0)
{
_loc3_ += 6;
}
else
{
_loc3_ -= 6;
}
}
if(i == m200)
{
var _loc5_ = (3 - Math.abs(_loc3_)) / 3 * 7;
}
else
{
_loc5_ = i.s;
}
if(cm2.c == 0)
{
i._x += Math.round(Math.cos(i.rt) * _loc5_);
}
i.rt += _loc3_ / i.fw;
if(i.st == 0)
{
i.rt = _loc4_;
u.st = 1;
}
if(Math.abs(i.rt) > 3)
{
if(i.rt < 0)
{
i.rt += 6;
}
else
{
i.rt -= 6;
}
}
var _loc2_ = Math.round(i.rt / 0.75) + 5;
if(_loc2_ > 8)
{
_loc2_ = 1;
}
i.fi = _loc2_;
if(i._x > 380)
{
i._x -= 403;
}
_loc2_ = i.fi * 3 + n;
i.o.gotoAndStop(_loc2_);
i.c.gotoAndStop(_loc2_);
i.swapDepths(i._y * 100 + i.i);
}
x = -1;
y = -1;
sd = 1;
cfr = 0;
mk = 12;
i = 0;
while(i <= mk)
{
theName = "m" + i;
duplicateMovieClip(m,theName,16384 + (i + 1000));
u = this[theName];
u.i = i;
u.ch = Math.floor(Math.random() * 5) + 1;
u.gotoAndStop(u.ch);
u.cl = Math.floor(Math.random() * 4) + 1;
colList = new Object();
colList.aa = 100;
clchg(u.cl);
colObj = new Color(u.c);
colObj.setTransform(colList);
u.s = 5;
u.fw = Math.floor(Math.random() * 10 + 2);
u.pw = 30 + Math.floor(Math.random() * 70);
u.mp = 30 + Math.floor(Math.random() * 70);
u.hp = u.mp;
u.nm = na[Math.floor(Math.random() * na.length)] + nb[Math.floor(Math.random() * nb.length)];
u.k = 0;
u.fx = 0;
u.fy = 0;
u.l = -1;
u.t = 0;
u.fi = 0;
u._x = i * 31 - 403;
u._y = 278;
u.tx = 2000;
u.ty = u._y;
u.o.gotoAndStop(20);
u.c.gotoAndStop(20);
u.rt = 0;
u.st = 1;
i++;
}
tdp = 1;
r = 0.017453292519943295;
h1 = 36;
h2 = 43;
_root.gk = 0;
f = new Array(55);
i = 0;
while(i <= 50)
{
f[i] = new Array(55);
i++;
}
x = 0;
while(x <= 55)
{
y = 0;
while(y <= 40)
{
f[x][y] = 0;
y++;
}
x++;
}
_quality = "LOW";
stop();